<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('group[]', $groupdata, null, ['class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group hidden">
        <label for="c-level" class="control-label col-xs-12 col-sm-2">{:__('等级')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-level" data-rule="required" class="form-control selectpicker" name="row[level]" >
                <option value="1">等级1</option>
                <option value="2">等级2</option>
                <option value="3">等级3</option>
            </select>

        </div>
    </div>

    <div class="form-group hidden">
        <label for="c-level" class="control-label col-xs-12 col-sm-2">{:__('皮肤')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-mqdcss" data-rule="required" class="form-control selectpicker" name="row[mqdcss]" >
                <option value="style1.css">红色</option>
                <option value="style2.css">金色</option>
                <option value="style3.css">蓝色</option>
                <option value="style4.css">紫色</option>
                <option value="style5.css">蓝绿色</option>
                <option value="style6.css">绿色</option>
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]" value="" data-rule="required;username" />
        </div>
    </div>

    <div class="form-group hidden">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('联系人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value=""/>
        </div>
    </div>

    <div class="form-group">
        <label for="sh_title" class="control-label col-xs-12 col-sm-2">{:__('网站标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="sh_title" name="row[sh_title]" autocomplete="off" value="" data-rule="required" />
        </div>
    </div>

    <!--<div class="form-group" id="dizhi" style="display: none">-->
        <!--<label class="control-label col-xs-12 col-sm-2">地址:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<button type="button" style="margin-bottom: 5px" data-toggle="addresspicker" data-input-id="gy_dizhi" data-lat-id="gy_lat" data-lng-id="gy_lng" class="btn " >选择地址</button>-->
            <!--<input id="gy_dizhi" class="form-control"  name="row[gy_dizhi]" type="text">-->
            <!--<input id="gy_lng" class="form-control" name="row[gy_lng]" type="text" style="width: 200px; margin-top: 5px;">-->
            <!--<input id="gy_lat" class="form-control" name="row[gy_lat]" type="text" style="width: 200px; margin-top: 5px;">-->

        <!--</div>-->
    <!--</div>-->
    <div class="form-group hidden">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">{:__('电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" autocomplete="off" value=""  />
        </div>
    </div>


    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password" value="" data-rule="required;password" />
        </div>
    </div>

    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[logo]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" data-url="ajax/upload" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!--<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <span>建议图片比例220*70</span>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="gy_lat" class="control-label col-xs-12 col-sm-2">{:__('价格倍数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="gy_lat" name="row[gy_lat]" autocomplete="off" value="" data-rule="required" />
        </div>
    </div>

    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('宣传语')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-seo_description" class="form-control  editor" rows="5" name="row[slogan]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('到期日期')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dq_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[dq_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>

    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('上传自主产品')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[sc_status]', ['1'=>__('是'), '2'=>__('否')],2)}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否公开价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[statusp]', ['1'=>__('否'), '2'=>__('是')],1)}
        </div>
    </div>
    
    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否显示开关助手')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[statukg]', ['1'=>__('否'), '2'=>__('是')],1)}
        </div>
    </div>
    
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>